import request from '@/utils/request'

// 查询视频商品名列表
export function listGoodsVideo(query) {
  return request({
    url: '/api/goods/video/list',
    method: 'get',
    params: query
  })
}

// 查询视频商品名详细
export function getGoodsVideo(id) {
  return request({
    url: '/api/goods/video/' + id,
    method: 'get'
  })
}

// 新增视频商品名
export function addGoodsVideo(data) {
  return request({
    url: '/api/goods/video',
    method: 'post',
    data: data
  })
}

// 修改视频商品名
export function updateGoodsVideo(data) {
  return request({
    url: '/api/goods/video',
    method: 'put',
    data: data
  })
}

// 删除视频商品名
export function delGoodsVideo(id) {
  return request({
    url: '/api/goods/video/' + id,
    method: 'delete'
  })
}
